package com.gsezone;

public class MyStringBuilder {
	public static void main(String[] args) {

		String s1 = "Hello World";

		String s2 = s1.replace("Hello", "");

		System.out.println(s1);
		System.out.println(s2);

		String s3 = "Hello World";
		System.out.println(s3.hashCode());
		System.out.println(s1.hashCode());

		StringBuilder message = new StringBuilder();
		long start = System.nanoTime();

		for (int i = 0; i < 1000000; i++) {
			message.append("X");

		}
		
		long end = System.nanoTime();
		System.out.println(end - start);
	}
}
